<template>
  <div class="root404">
      <div style="height:30%;">
        <el-image style="width:50vw" :src="error404" fit="contain" />
      </div>
      
  </div>
</template>

<script>
import error404 from '@/assets/error/401.jpg'
import { getAdminToken} from '@/utils/auth' // 从cookie中获取token
export default {
    data() {
        return {
            error404:error404,
        }
    },
    methods: {
      dashboard() {
        if(getAdminToken()){
          this.$router.push({ path: '/home' })
        }else{
          console.log(1111)
        }
      }
    },
}
</script>

<style lang="scss" scoped>
.root404{
  display: flex;
  flex-direction: column;
  align-items: center;
  // justify-content: center;
  height: 100%;
  width: 100%;
  padding:24px;
}
</style>>